﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LockCrypt.Core.AutoType {
    public class KeyCommand : AutoTypeCommand {
        public string Keys { get; set; }

        public KeyCommand() {
            Action = CommandType.Keys;
            Keys = string.Empty;
        }

        /// <summary>
        /// Serializes this command.
        /// </summary>
        /// <returns>
        /// A <see cref="System.String"/> that represents this command.
        /// </returns>
        public override string ToString() {
            return Keys.Length > 0 ? string.Format("{{Keys:{0}}}\n", Keys) : string.Empty;
        }
    }
}
